﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "parking_spaces", DisableSyncStructure = true)]
	public partial class ParkingSpaces {

		/// <summary>
		/// 车位编号    主键
		/// </summary>
		[JsonProperty, Column(Name = "P_Id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int PId { get; set; }

		/// <summary>
		/// 所属小区
		/// </summary>
		[JsonProperty, Column(Name = "P_Cell_Id", DbType = "int")]
		public int? PCellId { get; set; }

		/// <summary>
		/// 车位创建时间
		/// </summary>
		[JsonProperty, Column(Name = "P_CreateTime", DbType = "datetime")]
		public DateTime? PCreateTime { get; set; }

		/// <summary>
		/// 车位信息
		/// </summary>
		[JsonProperty, Column(Name = "P_Name")]
		public string PName { get; set; }

		/// <summary>
		/// 车位状态（0闲置中，1使用中）
		/// </summary>
		[JsonProperty, Column(Name = "P_State", DbType = "int")]
		public int? PState { get; set; }

		/// <summary>
		/// 所属用户
		/// </summary>
		[JsonProperty, Column(Name = "P_UserId", DbType = "int")]
		public int? PUserId { get; set; }

		/// <summary>
		/// 使用性质（0租，1已买）
		/// </summary>
		[JsonProperty, Column(Name = "P_UseState", DbType = "int")]
		public int? PUseState { get; set; }

		/// <summary>
		/// 到期时间
		/// </summary>
		[JsonProperty, Column(Name = "P_UseTime", DbType = "datetime")]
		public DateTime? PUseTime { get; set; }

	}

}
